﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Net.Mail;
using PMPUtils.Resources;
using PMPUtils.Util;

namespace PMPUtils.Documentation
{
    public class DocumentOperator
    {
        public static void SendKnowledgeBaseUpdate(MailAddress sender, String title)
        {
            MailAddressCollection sendTos = ResourceOperator.ReadAllEmails();
            String messageBody = "Go to http://bs-pc-664:9090/Documentation/KnowledgeBase.aspx to check it out.";

            EmailOperator.Send(title, messageBody, sendTos, sender, true, null);
        }
    }
}
